const path = require('path')
const fpath = '/file/鸭子.txt'
const fullName = path.basename(fpath)
console.log(fullName);
const nameWithoutExt = path.basename(fpath, '.txt')
console.log(nameWithoutExt);